<template>
    <BasePanel width="269px" height="100%" title="环境服务">
        <template #default>
            <div class="panel-content">
                <div v-for="item in panelState" :key="item.label" class="list-item">
                    <span class="label">{{ item.label }}</span>
                    <div class="value-box">
                        <span class="value">{{ item.value }}</span>
                        <span class="unit">{{ item.unit }}</span>
                    </div>
                </div>
            </div>
        </template>
    </BasePanel>
</template>

<script setup lang="ts">
import BasePanel from '@/components/BasePanel/index.vue'
// import { useGlobalStore } from '@/store/global'
// import { getFpiAssetsFile } from '@/utils/tools'

// 全局数据
// const globalStore = useGlobalStore()

const panelState = ref([
    {
        label: '企业自检',
        value: '3044217',
        unit: '次',
    },
    {
        label: '企业档案',
        value: '15695',
        unit: '家',
    },
    {
        label: '环评改革区域',
        value: '83',
        unit: '个',
    },
])
</script>

<style lang="scss" scoped>
.panel-content {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;

    .list-item {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;

        .label {
            font-size: 18px;
            font-weight: 700;
            line-height: 18px;
            color: rgba(255, 255, 255, 1);
            height: 18px;
        }

        .value-box {
            display: flex;
            align-items: flex-end;
            gap: 4px;

            .value {
                font-size: 28px;
                font-weight: 400;
                line-height: 28px;
                color: rgba(1, 254, 133, 1);
                height: 28px;
                font-family: Oswald;
            }
            .unit {
                font-size: 16px;
                font-weight: 700;
                line-height: 16px;
                height: 16px;
                color: rgba(255, 255, 255, 1);
            }
        }
    }
}
</style>
